<div id="content">
				<div class="breadcrumb">
					<p><a href="<?php echo $this->Html->url(array('controller' => 'resourceinfos', 'action'=>'index')); ?>">Tự giới thiệu</a> > <a href="<?php echo $this->Html->url(array('controller' => 'Resourceinfos', 'action'=>'category', $Resourceinfo['ResourceinfoType']['id'])); ?>"><?php echo $Resourceinfo['ResourceinfoType']['name']; ?></a> > <?php echo $Resourceinfo['Career']['name']; ?></p>
				</div><!--end breadcrumb-->	
				
				<?php if($Resourceinfo['ResourceinfoType']['id'] != 1) { ?>
					<div style="margin-bottom:20px; border: 1px solid #e7e7e7; margin-top:15px" class="ttms">
						<div class="ttms_data">
							<h2><?php echo $Resourceinfo["Resourceinfo"]["o_name"] ?></h2>
							<p class="date">
										Cập nhật bởi <?php echo $Resourceinfo['User']['username']; ?> lúc <?php echo date('h:m', strtotime($Resourceinfo['Resourceinfo']['create_date'])) ?> Ngày <?php echo date('d/m/Y', strtotime($Resourceinfo['Resourceinfo']['create_date'])) ?> từ <?php echo $Resourceinfo['City']['name'] ?>
							</p>
		
							<?php echo $Resourceinfo["Resourceinfo"]["o_description"] ?>
							
							<p class="canhan_contact">Liên hệ: <?php echo $Resourceinfo["Resourceinfo"]["o_name"] ?></p>
							<p><br />
						Đại chỉ: <?php echo $Resourceinfo["Resourceinfo"]["o_address"] ?><br />
						Người liên hệ: <?php echo $Resourceinfo["Resourceinfo"]["o_contact"] ?><br />
						Di động: <?php echo $Resourceinfo["Resourceinfo"]["o_contact_phone"] ?><br />
						ĐT: <?php echo $Resourceinfo["Resourceinfo"]["o_phone"] ?><br />
						Fax: <?php echo $Resourceinfo["Resourceinfo"]["o_fax"] ?><br />
						Email: <?php echo $Resourceinfo["Resourceinfo"]["o_email"] ?><br />
						<a href="#"><?php echo $Resourceinfo["Resourceinfo"]["o_website"] ?><br /></a>
						
						</p>
						</div>
					</div>
				<?php } else { ?>
				
					<div style="margin-bottom:20px; border:1px solid #e7e7e7" class="group1">
						<div style="padding:0 15px 15px 10px">
							<h2 style="margin-top:20px">Thông tin cá nhân</h2>
							<div style="overflow:hidden">
								<p class="canhan_img"><img width="150" alt="" src="<?php echo $this->Html->url("/uploads/resourceinfo_image/filename/thumb/feature/".$Resourceinfo["ResourceinfoImage"]["filename"]) ?>"></p>
								<div class="profile">
									<label for="name">Họ tên:</label><p><?php echo $Resourceinfo["Resourceinfo"]["fullname"] ?></p>
									<label for="birth">Ngày sinh:</label><p><?php echo date('d-m-Y', strtotime($Resourceinfo["Resourceinfo"]["birthday"])); ?></p>
									<label for="sex">Giới tính:</label><p><?php echo $Resourceinfo["Resourceinfo"]["gender"] ?></p>
									<label for="id">CMND:</label><p><?php echo $Resourceinfo["Resourceinfo"]["cmnd"] ?></p>
									<label for="phone">Điện thoại:</label><p><?php echo $Resourceinfo["Resourceinfo"]["phone"] ?></p>
									<label for="email">Email:</label><p><?php echo $Resourceinfo["Resourceinfo"]["email"] ?></p>
								</div><!--end profile-->
							</div>
							<div>
							<p class="canhan_detail">Giới thiệu năng lực:</p><br>
								<div class="profile1">
									<?php echo $Resourceinfo["Resourceinfo"]["skills"] ?>
								</div><!--end profile-->
							</div>
							
							
							
							<p class="canhan_contact">Kỹ năng,  kinh nghiệm làm việc:</p><br>
							<div class="profile1">
								<?php echo $Resourceinfo["Resourceinfo"]["experiences"] ?>
							</div>
						</div>	
							
			
					</div>
				
				<?php } ?>
			
			<div class="group1" style="margin-top:20px">
				<script type="text/javascript">
	

    function ajaxFilterDistrict(city_id)
    {
        $.ajax({
        url: '<?php echo $this->Html->url(array("controller" => "districts", "action" => "ajaxDistrictOption", "admin" => false));?>/'+city_id,        
        success: function( data ) {
            if (console && console.log){
              $("#ProjectinfoDistrictId").html(data);
	      //alert($("#ProductDistrictId").val());
	      //ajaxFilterProject($("#ProductDistrictId").val());
            }
          }
        });
    }
    
    function ajaxFilterCareer(city_id)
    {
        $.ajax({
        url: '<?php echo $this->Html->url(array("controller" => "careers", "action" => "ajaxCareerOption", "admin" => false));?>/'+city_id,        
        success: function( data ) {
            if (console && console.log){
              $("#ProjectinfoCareerId").html(data);
	      //alert($("#ProductDistrictId").val());
	      //ajaxFilterProject($("#ProductDistrictId").val());
            }
          }
        });
    }

</script>
<div class="box_search">
					<form action="<?php echo $this->Html->url(array('action' => 'category', $Resourceinfo['ResourceinfoType']['id'])); ?>" method="POST" id="filter_index">
						<div class="detail_search">
							<p class="key_title"><?php echo $Resourceinfo['ResourceinfoType']['name']; ?></p>
							
							<div class="select_box">

								<input type="text" name="filter_keyword" value="<?php echo $keyword; ?>" class="keyword" />
								<select onchange="ajaxFilterDistrict(this.value);ajaxFilterCareer(this.value);$('#filter_index').submit();" name="filter_city_id">
								    <option value="all"><?php __('Tỉnh/Thành'); ?></option>
								    <?php foreach($cities as $c ) {
									$selected = "";
									if($c["City"]["id"] == $city_id)
									{
									    $selected = 'selected="selected"';
									}
								    ?>
									<option value="<?php echo $c["City"]["id"] ?>" <?php echo $selected; ?> ><?php echo $c["City"]["name"] ?></option>
								    <?php } ?>
								</select>
								<select onchange="$('#filter_index').submit();" name="filter_district_id" id="ProjectinfoDistrictId">
								    <option value="all">- <?php __('Quận/Huyện'); ?> -</option>
								    <?php foreach($districts as $d ) {
									$selected = "";
									if($d["District"]["id"] == $district_id)
									{
									    $selected = 'selected="selected"';
									}
								    ?>
									<option value="<?php echo $d["District"]["id"] ?>" <?php echo $selected; ?> ><?php echo $d["District"]["name"] ?></option>
								    <?php } ?>
								</select>
								<select onchange="$('#filter_index').submit();" name="filter_career_id" id="ProjectinfoCareerId">
								    <option value="all">- <?php __('Ngành nghề'); ?> -</option>
								    <?php foreach($careers as $ca ) {
									$selected = "";
									if($ca["Career"]["id"] == $career_id)
									{
									    $selected = 'selected="selected"';
									}
								    ?>
									<option value="<?php echo $ca["Career"]["id"] ?>" <?php echo $selected; ?> ><?php echo $ca["Career"]["name"] ?></option>
								    <?php } ?>
								</select>
							</div><!--end select_box-->
						</div><!-- end detail_search-->
					</form>

				</div><!--end box_search-->					
				
					
				<div class="table_list">

					<table id="ncdt" width="100%" cellspacing="0" cellpadding="0" border="0">
						<tr class="title">
							<td>Sản phẩm</td>
							
							<td>Địa điểm</td>
							<td>Ngành nghề</td>

							<td>Lượt xem</td>
							<td>Ngày đăng</td>
							
						</tr>
						<?php foreach($Resourceinfos as $k => $item) {
							$class = $k%2 == 0 ? "odd" : "even" ;
						?>
									<tr class="<?php echo $class; ?>">
										<td><?php echo $this->Html->link(__($item["Resourceinfo"]["name"], true), array('action' => 'view', $item['Resourceinfo']['id'])); ?></td>
			
			
										<td><?php echo $item["City"]["name"] ?></td>
										<td><?php echo $item["Career"]["name"] ?></td>
										<td><?php echo $item["Resourceinfo"]["hit"] ?></td>
										<td><?php echo $item["Resourceinfo"]["create_date"] ?></td>
										
									</tr>
						<?php } ?>
						
					</table>

				</div><!--end table_list-->
				
				
				
				
					<div id="pagination">						
						<ul class="pager">

							<li><?php echo $this->Paginator->prev('<< ' . __('trang trước', true), array(), null, array('class'=>'disabled'));?></li>
							<li>
								<?php echo $this->Paginator->numbers();?>
							</li>							
							<li><?php echo $this->Paginator->next(__('trang sau', true) . ' >>', array(), null, array('class' => 'disabled'));?></li>
						</ul>
					</div><!--end pagination-->
			</div><!--end group-->	
			
